package org.ehe.finance.receipt.domain;

import org.ehe.common.mybatis.core.domain.BaseEntity2;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 收款单明细表
 * @author :zhangnn
 * @className :ErpFinanceReceiptDetail
 * @description: TODO
 * @date 2025-09-02 14:20:02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("erp_finance_receipt_detail")
public class ErpFinanceReceiptDetail extends BaseEntity2 {

    /**
     * 收款明细ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 收款单ID
     */
    private Long receiptId;

    /**
     * 应收账款ID
     */
    private Long receivableId;

    /**
     * 核销金额
     */
    private BigDecimal settleAmount;

    /**
     * 优惠金额
     */
    private BigDecimal discountAmount;

    /**
     * 备注
     */
    private String remark;
}
